package springboot.bean;

import java.util.Objects;

public class DataMove {
    private String orderId;
    private int finishType;
    private String lpnnumber;
    private String reserve1;
    private String reserve2;
    private String reserve3;
    private String reserve4;
    private String reserve5;

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public int getFinishType() {
        return finishType;
    }

    public void setFinishType(int finishType) {
        this.finishType = finishType;
    }

    public String getLpnnumber() {
        return lpnnumber;
    }

    public void setLpnnumber(String lpnnumber) {
        this.lpnnumber = lpnnumber;
    }

    public String getReserve1() {
        return reserve1;
    }

    public void setReserve1(String reserve1) {
        this.reserve1 = reserve1;
    }

    public String getReserve2() {
        return reserve2;
    }

    public void setReserve2(String reserve2) {
        this.reserve2 = reserve2;
    }

    public String getReserve3() {
        return reserve3;
    }

    public void setReserve3(String reserve3) {
        this.reserve3 = reserve3;
    }

    public String getReserve4() {
        return reserve4;
    }

    public void setReserve4(String reserve4) {
        this.reserve4 = reserve4;
    }

    public String getReserve5() {
        return reserve5;
    }

    public void setReserve5(String reserve5) {
        this.reserve5 = reserve5;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DataMove dataMove = (DataMove) o;
        return finishType == dataMove.finishType &&
                Objects.equals(orderId, dataMove.orderId) &&
                Objects.equals(lpnnumber, dataMove.lpnnumber) &&
                Objects.equals(reserve1, dataMove.reserve1) &&
                Objects.equals(reserve2, dataMove.reserve2) &&
                Objects.equals(reserve3, dataMove.reserve3) &&
                Objects.equals(reserve4, dataMove.reserve4) &&
                Objects.equals(reserve5, dataMove.reserve5);
    }

    @Override
    public int hashCode() {
        return Objects.hash(orderId, finishType, lpnnumber, reserve1, reserve2, reserve3, reserve4, reserve5);
    }

    @Override
    public String toString() {
        return "DataMove{" +
                "orderId='" + orderId + '\'' +
                ", finishType=" + finishType +
                ", lpnnumber='" + lpnnumber + '\'' +
                ", reserve1='" + reserve1 + '\'' +
                ", reserve2='" + reserve2 + '\'' +
                ", reserve3='" + reserve3 + '\'' +
                ", reserve4='" + reserve4 + '\'' +
                ", reserve5='" + reserve5 + '\'' +
                '}';
    }
}
